make:
	mkdir -p out
	iverilog -I rtl/peripheral/uart/  rtl/*/*.v rtl/*/*/*.v rtl/*.v -o ./out/riscv
	cd testfiles/ && make

test: make
	cd out/ && ./riscv
	sleep 1
	gtkwave ./out/dump.vcd

clean:
	cd out/ && rm *
	cd testfiles/ && make clean
